<!doctype html>
<html lang="en" data-bs-theme="auto">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
    <meta name="generator" content="Hugo 0.145.0">
    <title>人才市场</title>

    <link rel="canonical" href="https://getbootstrap.com/docs/5.3/examples/sidebars/">

    <script src="./bootstrap-5.3.0-alpha1-dist/js/color-modes.js"></script>

    <link href="./bootstrap-5.3.0-alpha1-dist/css/bootstrap.min.css" rel="stylesheet">
      <link rel="stylesheet" href="./css/ceshi.css">

    <link rel="apple-touch-icon" href="../assets/img/favicons/apple-touch-icon.png" sizes="180x180">
<link rel="icon" href="../assets/img/favicons/favicon-32x32.png" sizes="32x32" type="image/png">
<link rel="icon" href="../assets/img/favicons/favicon-16x16.png" sizes="16x16" type="image/png">
<link rel="manifest" href="../assets/img/favicons/manifest.json">
<link rel="mask-icon" href="../assets/img/favicons/safari-pinned-tab.svg" color="#712cf9">
<link rel="icon" href="../assets/img/favicons/favicon.ico">
      <link rel="icon" href="./images/gongzhenglogo.png">

      <meta name="theme-color" content="#712cf9">


    <style>
      .bd-placeholder-img {
        font-size: 1.125rem;
        text-anchor: middle;
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
      }

      @media (min-width: 768px) {
        .bd-placeholder-img-lg {
          font-size: 3.5rem;
        }
      }

      .b-example-divider {
        width: 100%;
        height: 3rem;
        background-color: rgba(0, 0, 0, .1);
        border: solid rgba(0, 0, 0, .15);
        border-width: 1px 0;
        box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
      }

      .b-example-vr {
        flex-shrink: 0;
        width: 1.5rem;
        height: 100vh;
      }

      .bi {
        vertical-align: -.125em;
        fill: currentColor;
      }

      .nav-scroller {
        position: relative;
        z-index: 2;
        height: 2.75rem;
        overflow-y: hidden;
      }

      .nav-scroller .nav {
        display: flex;
        flex-wrap: nowrap;
        padding-bottom: 1rem;
        margin-top: -1px;
        overflow-x: auto;
        text-align: center;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
      }

      .btn-bd-primary {
        --bd-violet-bg: #712cf9;
        --bd-violet-rgb: 112.520718, 44.062154, 249.437846;

        --bs-btn-font-weight: 600;
        --bs-btn-color: var(--bs-white);
        --bs-btn-bg: var(--bd-violet-bg);
        --bs-btn-border-color: var(--bd-violet-bg);
        --bs-btn-hover-color: var(--bs-white);
        --bs-btn-hover-bg: #6528e0;
        --bs-btn-hover-border-color: #6528e0;
        --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
        --bs-btn-active-color: var(--bs-btn-hover-color);
        --bs-btn-active-bg: #5a23c8;
        --bs-btn-active-border-color: #5a23c8;
      }

      .bd-mode-toggle {
        z-index: 1500;
      }

      .bd-mode-toggle .bi {
        width: 1em;
        height: 1em;
      }

      .bd-mode-toggle .dropdown-menu .active .bi {
        display: block !important;
      }
    </style>

    <!-- Custom styles for this template -->
    <link href="css/sidebars.css" rel="stylesheet">
  </head>
  <body>
    <svg xmlns="http://www.w3.org/2000/svg" class="d-none">
  <symbol id="check2" viewBox="0 0 16 16">
    <path d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"/>
  </symbol>
  <symbol id="circle-half" viewBox="0 0 16 16">
    <path d="M8 15A7 7 0 1 0 8 1v14zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16z"/>
  </symbol>
  <symbol id="moon-stars-fill" viewBox="0 0 16 16">
    <path d="M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z"/>
    <path d="M10.794 3.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387a1.734 1.734 0 0 0-1.097 1.097l-.387 1.162a.217.217 0 0 1-.412 0l-.387-1.162A1.734 1.734 0 0 0 9.31 6.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387a1.734 1.734 0 0 0 1.097-1.097l.387-1.162zM13.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732l-.774-.258a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L13.863.1z"/>
  </symbol>
  <symbol id="sun-fill" viewBox="0 0 16 16">
    <path d="M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z"/>
  </symbol>
</svg>



<svg xmlns="http://www.w3.org/2000/svg" class="d-none">
  <symbol id="bootstrap" viewBox="0 0 118 94">
    <title>Bootstrap</title>
    <path fill-rule="evenodd" clip-rule="evenodd" d="M24.509 0c-6.733 0-11.715 5.893-11.492 12.284.214 6.14-.064 14.092-2.066 20.577C8.943 39.365 5.547 43.485 0 44.014v5.972c5.547.529 8.943 4.649 10.951 11.153 2.002 6.485 2.28 14.437 2.066 20.577C12.794 88.106 17.776 94 24.51 94H93.5c6.733 0 11.714-5.893 11.491-12.284-.214-6.14.064-14.092 2.066-20.577 2.009-6.504 5.396-10.624 10.943-11.153v-5.972c-5.547-.529-8.934-4.649-10.943-11.153-2.002-6.484-2.28-14.437-2.066-20.577C105.214 5.894 100.233 0 93.5 0H24.508zM80 57.863C80 66.663 73.436 72 62.543 72H44a2 2 0 01-2-2V24a2 2 0 012-2h18.437c9.083 0 15.044 4.92 15.044 12.474 0 5.302-4.01 10.049-9.119 10.88v.277C75.317 46.394 80 51.21 80 57.863zM60.521 28.34H49.948v14.934h8.905c6.884 0 10.68-2.772 10.68-7.727 0-4.643-3.264-7.207-9.012-7.207zM49.948 49.2v16.458H60.91c7.167 0 10.964-2.876 10.964-8.281 0-5.406-3.903-8.178-11.425-8.178H49.948z"></path>
  </symbol>
  <symbol id="home" viewBox="0 0 16 16">
    <path d="M8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4.5a.5.5 0 0 0 .5-.5v-4h2v4a.5.5 0 0 0 .5.5H14a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146zM2.5 14V7.707l5.5-5.5 5.5 5.5V14H10v-4a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v4H2.5z"/>
  </symbol>
  <symbol id="speedometer2" viewBox="0 0 16 16">
    <path d="M8 4a.5.5 0 0 1 .5.5V6a.5.5 0 0 1-1 0V4.5A.5.5 0 0 1 8 4zM3.732 5.732a.5.5 0 0 1 .707 0l.915.914a.5.5 0 1 1-.708.708l-.914-.915a.5.5 0 0 1 0-.707zM2 10a.5.5 0 0 1 .5-.5h1.586a.5.5 0 0 1 0 1H2.5A.5.5 0 0 1 2 10zm9.5 0a.5.5 0 0 1 .5-.5h1.5a.5.5 0 0 1 0 1H12a.5.5 0 0 1-.5-.5zm.754-4.246a.389.389 0 0 0-.527-.02L7.547 9.31a.91.91 0 1 0 1.302 1.258l3.434-4.297a.389.389 0 0 0-.029-.518z"/>
    <path fill-rule="evenodd" d="M0 10a8 8 0 1 1 15.547 2.661c-.442 1.253-1.845 1.602-2.932 1.25C11.309 13.488 9.475 13 8 13c-1.474 0-3.31.488-4.615.911-1.087.352-2.49.003-2.932-1.25A7.988 7.988 0 0 1 0 10zm8-7a7 7 0 0 0-6.603 9.329c.203.575.923.876 1.68.63C4.397 12.533 6.358 12 8 12s3.604.532 4.923.96c.757.245 1.477-.056 1.68-.631A7 7 0 0 0 8 3z"/>
  </symbol>
  <symbol id="table" viewBox="0 0 16 16">
    <path d="M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm15 2h-4v3h4V4zm0 4h-4v3h4V8zm0 4h-4v3h3a1 1 0 0 0 1-1v-2zm-5 3v-3H6v3h4zm-5 0v-3H1v2a1 1 0 0 0 1 1h3zm-4-4h4V8H1v3zm0-4h4V4H1v3zm5-3v3h4V4H6zm4 4H6v3h4V8z"/>
  </symbol>
  <symbol id="people-circle" viewBox="0 0 16 16">
    <path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/>
    <path fill-rule="evenodd" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1z"/>
  </symbol>
  <symbol id="grid" viewBox="0 0 16 16">
    <path d="M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5v-3zM2.5 2a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zm6.5.5A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zM1 10.5A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3zm6.5.5A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5v-3zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5h-3z"/>
  </symbol>
</svg>

<main class="d-flex flex-nowrap">
  <h1 class="visually-hidden">Sidebars examples</h1>

  <div class="d-flex flex-column flex-shrink-0 p-3 text-bg-dark" style="width: 280px;">
      <a href="#" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-white text-decoration-none">
        <img src="./images/gongzhenglogo.png" alt="" width="32" height="32" class="rounded-circle me-2">


<!--        <svg class="bi pe-none me-2" width="40" height="32" aria-hidden="true"><use xlink:href="#bootstrap"/></svg>-->
        <span class="fs-4">盲投标拍卖</span>
    </a>
    <hr>
    <ul class="nav nav-pills flex-column mb-auto">
      <li class="nav-item">
<!--        <a href="#" class="nav-link active" aria-current="page">-->
        <a href="./usersetHome.html" class="nav-link text-white">

        <svg class="bi pe-none me-2" width="16" height="16" aria-hidden="true"><use xlink:href="#home"/></svg>
            企业招标
        </a>
      </li>

      <li>
        <a href="./usersetOrders.html" class="nav-link text-white">
          <!--        <a href="#" class="nav-link active" aria-current="page">-->

          <svg class="bi pe-none me-2" width="16" height="16" aria-hidden="true"><use xlink:href="#table"/></svg>
          建材投标
        </a>
      </li>
      <li>
        <a href="./usersetProducts.html" class="nav-link text-white">
          <!--        <a href="#" class="nav-link active" aria-current="page">-->

          <svg class="bi pe-none me-2" width="16" height="16" aria-hidden="true"><use xlink:href="#grid"/></svg>
            拍卖会
        </a>
      </li>
      <li>
        <a href="./usersetCustomers.html" class="nav-link active" aria-current="page">

          <svg class="bi pe-none me-2" width="16" height="16" aria-hidden="true"><use xlink:href="#people-circle"/></svg>
            人才市场
        </a>
      </li>
        <li>
<!--            <a href="./usersetDashboard.html" class="nav-link text-white">-->
<!--                &lt;!&ndash;        <a href="#" class="nav-link active" aria-current="page">&ndash;&gt;-->

<!--                <svg class="bi pe-none me-2" width="16" height="16" aria-hidden="true"><use xlink:href="#speedometer2"/></svg>-->
<!--                风投分析-->
<!--            </a>-->
        </li>
    </ul>

    <hr>
    <!-- 新增用户入口 -->
      <li>
          <a href="./usersetProfile.html" class="nav-link active" aria-current="page">
              <img src="./images/111.png" alt="" width="32" height="32" class="rounded-circle me-2">

              <strong >用户登录</strong>

          </a>
      </li>
    <li>
      <a href="./ZhijianAi.html" class="nav-link active" aria-current="page">
        <img src="./images/大宝剑.png" alt="" width="32" height="32" class="rounded-circle me-2">
        <strong >执剑系统</strong>
      </a>
    </li>


  </div>
  <div class="b-example-divider b-example-vr"></div>
  <div class="talent-market-container" style="zoom:90%;">
    <div class="talent-header">
      <h2 class="talent-title">精选人才</h2><br>
      <div class="talent-search">
        <input type="text" class="form-control" id="searchInput" placeholder="搜索技能、职位或名称">
          <button class="btn btn-primary" onclick="searchResume()">搜索</button>
<script>
function searchResume() {
    var name = document.getElementById('searchInput').value.trim();
    if(name) {
        window.location.href = 'gerenjianli.html?name=' + encodeURIComponent(name);
    } else {
        alert('请输入要搜索的人才姓名');
    }
}
</script>
      </div>
        <br>
      <div class="talent-filter">
        <select class="form-select">
          <option selected>所有领域</option>
          <option>技术开发</option>
          <option>设计创意</option>
          <option>市场营销</option>
          <option>管理咨询</option>
        </select>
      </div>
    </div>

    <div class="talent-grid" id="talentGrid">
      <!-- 人才卡片由JS动态插入 -->
    </div>

    <!-- 分页控件 -->
    <nav aria-label="人才分页" class="talent-pagination">
      <ul class="pagination justify-content-center">
        <li class="page-item disabled">
          <a class="page-link" href="#" tabindex="-1" aria-disabled="true">上一页</a>
        </li>
        <li class="page-item active"><a class="page-link" href="#">1</a></li>
        <li class="page-item"><a class="page-link" href="#">2</a></li>
        <li class="page-item"><a class="page-link" href="#">3</a></li>
        <li class="page-item">
          <a class="page-link" href="#">下一页</a>
        </li>
      </ul>
    </nav>
  </div>

  <!-- 添加Bootstrap图标库 -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">

  <!-- 猎头联系方式模态框 -->
<!--  <div class="modal fade" id="headhunterModal" tabindex="-1" aria-labelledby="headhunterModalLabel" aria-hidden="true">-->
<!--    <div class="modal-dialog modal-dialog-centered">-->
<!--      <div class="modal-content">-->
<!--        <div class="modal-header">-->
<!--          <h5 class="modal-title" id="headhunterModalLabel">猎头联系方式</h5>-->
<!--          <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="关闭"></button>-->
<!--        </div>-->
<!--        <div class="modal-body">-->
<!--          请联系猎头：王经理<br>-->
<!--          电话：138-0000-0000<br>-->
<!--          邮箱：headhunter@example.com-->
<!--        </div>-->
<!--        <div class="modal-footer">-->
<!--          <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">关闭</button>-->
<!--        </div>-->
<!--      </div>-->
<!--    </div>-->
<!--  </div>-->

  <!-- 添加自定义样式 -->

  <style>
    /* 人才市场容器 */
    .talent-market-container {
      padding: 30px;
      max-width: 1600px;
      margin: 0 auto;
    }

    /* 头部区域 */
    .talent-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 30px;
      flex-wrap: wrap;
    }

    .talent-title {
      font-size: 28px;
      font-weight: 600;
      color: #333;
      margin: 0;
    }

    .talent-search {
      display: flex;
      width: 400px;
    }

    .talent-search input {
      border-radius: 4px 0 0 4px;
      border-right: none;
    }

    .talent-search button {
      border-radius: 0 4px 4px 0;
    }

    .talent-filter {
      width: 200px;
    }

    /* 人才网格 */
    .talent-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 25px;
      margin-bottom: 40px;
    }

    /* 人才卡片 */
    .talent-card {
      background: white;
      border-radius: 10px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
      padding: 25px;
      text-align: center;
      transition: transform 0.3s, box-shadow 0.3s;
      position: relative;
      overflow: hidden;
    }

    .talent-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

    .talent-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 5px;
      background: linear-gradient(90deg, #4CAF50, #2196F3);
    }

    .talent-avatar {
      position: relative;
      width: 120px;
      height: 120px;
      margin: 0 auto 15px;
    }

    .talent-status {
      position: absolute;
      bottom: 5px;
      right: 5px;
      width: 15px;
      height: 15px;
      border-radius: 50%;
      border: 2px solid white;
    }

    .online {
      background-color: #4CAF50;
    }

    .away {
      background-color: #FFC107;
    }

    .offline {
      background-color: #9E9E9E;
    }

    .talent-name {
      font-size: 22px;
      font-weight: 600;
      margin-bottom: 5px;
      color: #333;
    }

    .talent-position {
      color: #666;
      font-size: 16px;
      margin-bottom: 15px;
    }

    .talent-intro {
      color: #777;
      font-size: 14px;
      line-height: 1.5;
      margin-bottom: 15px;
      height: 60px;
      overflow: hidden;
    }

    .talent-skills {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
      margin-bottom: 15px;
    }

    .skill-tag {
      background-color: #f0f0f0;
      color: #555;
      padding: 5px 10px;
      border-radius: 20px;
      font-size: 12px;
    }

    .talent-rating {
      margin-bottom: 20px;
      color: #FFC107;
    }

    .talent-rating span {
      color: #666;
      margin-left: 5px;
    }

    .talent-contact {
      width: 100%;
      transition: background-color 0.3s;
    }

    /* 响应式调整 */
    @media (max-width: 768px) {
      .talent-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
      }
      
      .talent-search, .talent-filter {
        width: 100%;
      }
      
      .talent-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      }
    }
  </style>

  <!-- 添加JS逻辑 -->
  <script src="./bootstrap-5.3.0-alpha1-dist/js/bootstrap.bundle.min.js"></script>
  <script>
    document.addEventListener('DOMContentLoaded', function() {
      const pageSize = 2;
      let resumes = [];
      let currentPage = 1;

      function renderGrid(page) {
        const grid = document.getElementById('talentGrid');
        grid.innerHTML = '';
        const start = (page - 1) * pageSize;
        const end = start + pageSize;
        const pageData = resumes.slice(start, end);
        pageData.forEach(item => {
          const skills = item.skills.split(',').map(s => `<span class="skill-tag">${s.trim()}</span>`).join(' ');
          const projects = item.projects.split(',').map(p => `<li>${p.trim()}</li>`).join('');
          const card = document.createElement('div');
          card.className = 'talent-card';
            card.style.cursor = 'pointer';
            card.onclick = function() {
                window.location.href = 'gerenjianli.html?name=' + encodeURIComponent(item.name);
            };
          card.innerHTML = `
            <div class="talent-avatar">
              <svg class="bd-placeholder-img rounded-circle" width="120" height="120" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder" preserveAspectRatio="xMidYMid slice"><title>Placeholder</title><rect width="100%" height="100%" fill="var(--bs-secondary-color)"/></svg>
              <div class="talent-status online"></div>
            </div>
            <h3 class="talent-name">${item.name}</h3>
            <div class="talent-position">${item.title}</div>
            <p class="talent-intro">工作年限：${item.experience}年</p>
            <div class="talent-skills">${skills}</div>
            <div class="talent-projects">
              <strong>项目经验：</strong>
              <ul style="text-align:left">${projects}</ul>
            </div>
            <button class="btn btn-primary talent-contact">查看详细简历</button>
          `;
          grid.appendChild(card);
        });
        // 绑定按钮事件
        document.querySelectorAll('.talent-contact').forEach(function(btn) {
          btn.addEventListener('click', function() {
            var modal = new bootstrap.Modal(document.getElementById('headhunterModal'));
            modal.show();
          });
        });
      }

      function renderPagination() {
        const pageCount = Math.ceil(resumes.length / pageSize);
        const pagination = document.querySelector('.talent-pagination ul.pagination');
        pagination.innerHTML = '';

        // 上一页
        const prevLi = document.createElement('li');
        prevLi.className = 'page-item' + (currentPage === 1 ? ' disabled' : '');
        prevLi.innerHTML = `<a class="page-link" href="#">上一页</a>`;
        prevLi.addEventListener('click', function(e) {
          e.preventDefault();
          if (currentPage > 1) {
            currentPage--;
            renderGrid(currentPage);
            renderPagination();
          }
        });
        pagination.appendChild(prevLi);

        // 页码
        for (let i = 1; i <= pageCount; i++) {
          const li = document.createElement('li');
          li.className = 'page-item' + (i === currentPage ? ' active' : '');
          li.innerHTML = `<a class="page-link" href="#">${i}</a>`;
          li.addEventListener('click', function(e) {
            e.preventDefault();
            currentPage = i;
            renderGrid(currentPage);
            renderPagination();
          });
          pagination.appendChild(li);
        }

        // 下一页
        const nextLi = document.createElement('li');
        nextLi.className = 'page-item' + (currentPage === pageCount ? ' disabled' : '');
        nextLi.innerHTML = `<a class="page-link" href="#">下一页</a>`;
        nextLi.addEventListener('click', function(e) {
          e.preventDefault();
          if (currentPage < pageCount) {
            currentPage++;
            renderGrid(currentPage);
            renderPagination();
          }
        });
        pagination.appendChild(nextLi);
      }

      fetch('http://localhost:8080/api/resumes/all')
        .then(res => res.json())
        .then(resData => {
          resumes = Array.isArray(resData) ? resData : [resData];
          renderGrid(currentPage);
          renderPagination();
        })
        .catch(err => {
          alert('人才数据加载失败');
          console.error(err);
        });
    });
  </script>
</body>
</html>





  
            
<!--            <div class="col-lg-4" style="width: 500px;">-->
<!--                <svg class="bd-placeholder-img rounded-circle" width="140" height="140" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Placeholder" preserveAspectRatio="xMidYMid slice"><title>Placeholder</title><rect width="100%" height="100%" fill="var(&#45;&#45;bs-secondary-color)"/></svg>-->
<!--                <button class="btn btn-primary talent-contact">发送劳动协议</button>-->
<!--              </div>-->
              <!-- 可以继续添加更多卡片 -->
            </div>

            <!-- 分页控件 -->
<!--            <nav aria-label="人才分页" class="talent-pagination">-->
<!--              <ul class="pagination justify-content-center">-->
<!--                <li class="page-item disabled">-->
<!--                  <a class="page-link" href="#" tabindex="-1" aria-disabled="true">上一页</a>-->
<!--                </li>-->
<!--                <li class="page-item active"><a class="page-link" href="#">1</a></li>-->
<!--                <li class="page-item"><a class="page-link" href="#">2</a></li>-->
<!--                <li class="page-item"><a class="page-link" href="#">3</a></li>-->
<!--                <li class="page-item">-->
<!--                  <a class="page-link" href="#">下一页</a>-->
<!--                </li>-->
<!--              </ul>-->
<!--            </nav>-->
          </div>

          <!-- 添加Bootstrap图标库 -->
          <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">

